package ar.edu.itba.pod.Legajo47342.market;

import ar.edu.itba.pod.Legajo47342.Node;
import ar.edu.itba.pod.simul.market.Market;
import ar.edu.itba.pod.simul.market.MarketInspector;
import ar.edu.itba.pod.simul.market.MarketManager;

public class MarketManagerImpl implements MarketManager {

	private MarketImpl market;
	private Node node;
	
	public MarketManagerImpl(Node node) {
		super();
		this.node = node;
		this.market = new MarketImpl(node);
	}

	@Override
	public void start() {
		market.start();

	}

	@Override
	public void shutdown() {
		market.finish();

	}

	@Override
	public Market market() {
		return market;
	}

	@Override
	public MarketInspector inspector() {
		return market;
	}

}
